Attributes are the properties of the tags used to format the output or content inside the tags.
specify the styling of an element, like color, font, size etc.
Syntax:
<p style="color:blue;text-align:center;font:arial,size:15">
Text</p>
This should be green and centred.
Used with <p>
tag.
Value of the title attribute is displayed as a tooltip when you mouse over the paragraph.
Syntax:
<p title="Text">
Text</p>
Declares language of the document in <html>
tag.
Syntax:
<html lang="en-US">
en-US is the language code meaning English(en) as used in United States(US).